package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author mengyb
 * @since 2019/04/12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWBC_T")
public class GwbcT extends PO<GwbcT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWBCENT",type = IdType.INPUT)
    private String GWBCENT;
    private String GWBC001;
    private String GWBC002;
    private String GWBC003;
    private String GWBC004;
    private String GWBC005;
    private String GWBCACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWBCUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWBCGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWBCMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWBCTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWBCDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWBCORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWBCORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWBCENT;
    }
}
